Skip to content

Hw5 Complex parenthese#3

Open
DolzhenkoAlexa wants to merge 4 commits intomainfrom
HW5_ComplexParenthese_Dolzhenko
Open

Hw5 Complex parenthese#3
DolzhenkoAlexa wants to merge 4 commits intomainfrom
HW5_ComplexParenthese_Dolzhenko

Conversation

@DolzhenkoAlexa
Copy link
Owner

Файлы стэка и файлы с решением для задачи "Продвинутый баланс скобок". Все комментарии насчет кода внутри файлов и заголовочных файлов.

Долженко Александра

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут что-то странное: задачи с контрольной почему-то здесь (в PR должны быть только релевантные файлы). за это пока минус баллы, но ничего не делайте --- до того как я проверю контрольную


#include "stack.h"

// Создаем стэк, делая значение top равным -1 ("нет элементов")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

стек


// проверяем соответствие скобок (они должны быть одного вида, если встретилась закрывающаяся)
if ((lastElem == '(' && str[i] != ')') || (lastElem == '[' && str[i] != ']') || (lastElem == '{' && str[i] != '}')) {
return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что-то с форматированием

//
// Created by sasha on 23.10.2025.
//

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

этот файл должен содержать и код тоже

Copy link
Collaborator

@chernishev chernishev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5/6, комментарии в коде

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants